home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Linux
/
Kubuntu 8.10
/
kubuntu-8.10-desktop-i386.iso
/
casper
/
filesystem.squashfs
/
usr
/
share
/
perl5
/
URI
/
http.pm
< prev
next >
Wrap
Text File
|
2004-10-05
|
405b
|
26 lines
package URI::http;
require URI::_server;
@ISA=qw(URI::_server);
use strict;
sub default_port { 80 }
sub canonical
{
my $self = shift;
my $other = $self->SUPER::canonical;
my $slash_path = defined($other->authority) &&
!length($other->path) && !defined($other->query);
if ($slash_path) {
$other = $other->clone if $other == $self;
$other->path("/");
}
$other;
}
1;